
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">

    <style type="text/css">

        @font-face {font-family: "ZM-Main-icon-font";
          src: url('iconfont.eot'); /* IE9*/
          src: url('iconfont.eot#iefix') format('embedded-opentype'), /* IE6-IE8 */
          url('iconfont.woff') format('woff'), /* chrome, firefox */
          url('iconfont.ttf') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
          url('iconfont.svg#ZM-Main-icon-font') format('svg'); /* iOS 4.1- */
        }

        .ZM-Main-icon-font {
          font-family:"ZM-Main-icon-font" !important;
          font-size:16px;
          font-style:normal;
          -webkit-font-smoothing: antialiased;
          -webkit-text-stroke-width: 0.2px;
          -moz-osx-font-smoothing: grayscale;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe612;</i>
                    <div class="name">关闭</div>
                    <div class="code">&amp;#xe612;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe616;</i>
                    <div class="name">user02</div>
                    <div class="code">&amp;#xe616;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe625;</i>
                    <div class="name">身份证</div>
                    <div class="code">&amp;#xe625;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe779;</i>
                    <div class="name">消息</div>
                    <div class="code">&amp;#xe779;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe68b;</i>
                    <div class="name">实施困境</div>
                    <div class="code">&amp;#xe68b;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe68d;</i>
                    <div class="name">标准框架部署</div>
                    <div class="code">&amp;#xe68d;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe68f;</i>
                    <div class="name">流程和工具指导</div>
                    <div class="code">&amp;#xe68f;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe690;</i>
                    <div class="name">二次开发服务</div>
                    <div class="code">&amp;#xe690;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe691;</i>
                    <div class="name">定制化选型部署</div>
                    <div class="code">&amp;#xe691;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe693;</i>
                    <div class="name">与Docker容器云平台的融合</div>
                    <div class="code">&amp;#xe693;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe694;</i>
                    <div class="name">微服务基础设施</div>
                    <div class="code">&amp;#xe694;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe695;</i>
                    <div class="name">分布式事务</div>
                    <div class="code">&amp;#xe695;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe696;</i>
                    <div class="name">服务的高级治理功能</div>
                    <div class="code">&amp;#xe696;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe697;</i>
                    <div class="name">安全认证机制</div>
                    <div class="code">&amp;#xe697;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe69c;</i>
                    <div class="name">角色职责</div>
                    <div class="code">&amp;#xe69c;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe69f;</i>
                    <div class="name">多租户</div>
                    <div class="code">&amp;#xe69f;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe6a1;</i>
                    <div class="name">高可用</div>
                    <div class="code">&amp;#xe6a1;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe6a3;</i>
                    <div class="name">环境的部署</div>
                    <div class="code">&amp;#xe6a3;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe6a7;</i>
                    <div class="name">生命周期管理</div>
                    <div class="code">&amp;#xe6a7;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe6a8;</i>
                    <div class="name">数据保护</div>
                    <div class="code">&amp;#xe6a8;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe6ac;</i>
                    <div class="name">资源交付</div>
                    <div class="code">&amp;#xe6ac;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe6b0;</i>
                    <div class="name">高可靠2</div>
                    <div class="code">&amp;#xe6b0;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe6b2;</i>
                    <div class="name">功能丰富</div>
                    <div class="code">&amp;#xe6b2;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe6b7;</i>
                    <div class="name">企业应用</div>
                    <div class="code">&amp;#xe6b7;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe6ba;</i>
                    <div class="name">无缝融合</div>
                    <div class="code">&amp;#xe6ba;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe6df;</i>
                    <div class="name">可编排作业</div>
                    <div class="code">&amp;#xe6df;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe6e1;</i>
                    <div class="name">批量操作</div>
                    <div class="code">&amp;#xe6e1;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe6e7;</i>
                    <div class="name">拆分咨询</div>
                    <div class="code">&amp;#xe6e7;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe6ec;</i>
                    <div class="name">角色管理</div>
                    <div class="code">&amp;#xe6ec;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe6f1;</i>
                    <div class="name">统一监控</div>
                    <div class="code">&amp;#xe6f1;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe6f2;</i>
                    <div class="name">统一门户</div>
                    <div class="code">&amp;#xe6f2;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe6f4;</i>
                    <div class="name">一体化管理</div>
                    <div class="code">&amp;#xe6f4;</div>
                </li>
            
                <li>
                <i class="icon ZM-Main-icon-font">&#xe6f6;</i>
                    <div class="name">自动化</div>
                    <div class="code">&amp;#xe6f6;</div>
                </li>
            
        </ul>
        <h2 id="unicode-">unicode引用</h2>
        <hr>

        <p>unicode是字体在网页端最原始的应用方式，特点是：</p>
        <ul>
        <li>兼容性最好，支持ie6+，及所有现代浏览器。</li>
        <li>支持按字体的方式去动态调整图标大小，颜色等等。</li>
        <li>但是因为是字体，所以不支持多色。只能使用平台里单色的图标，就算项目里有多色图标也会自动去色。</li>
        </ul>
        <blockquote>
        <p>注意：新版iconfont支持多色图标，这些多色图标在unicode模式下将不能使用，如果有需求建议使用symbol的引用方式</p>
        </blockquote>
        <p>unicode使用步骤如下：</p>
        <h3 id="-font-face">第一步：拷贝项目下面生成的font-face</h3>
        <pre><code class="lang-js hljs javascript">@font-face {
  font-family: <span class="hljs-string">'ZM-Main-icon-font'</span>;
  src: url(<span class="hljs-string">'iconfont.eot'</span>);
  src: url(<span class="hljs-string">'iconfont.eot?#iefix'</span>) format(<span class="hljs-string">'embedded-opentype'</span>),
  url(<span class="hljs-string">'iconfont.woff'</span>) format(<span class="hljs-string">'woff'</span>),
  url(<span class="hljs-string">'iconfont.ttf'</span>) format(<span class="hljs-string">'truetype'</span>),
  url(<span class="hljs-string">'iconfont.svg#ZM-Main-icon-font'</span>) format(<span class="hljs-string">'svg'</span>);
}
</code></pre>
        <h3 id="-iconfont-">第二步：定义使用iconfont的样式</h3>
        <pre><code class="lang-js hljs javascript">.ZM-Main-icon-font{
  font-family:<span class="hljs-string">"ZM-Main-icon-font"</span> !important;
  font-size:<span class="hljs-number">16</span>px;font-style:normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: <span class="hljs-number">0.2</span>px;
  -moz-osx-font-smoothing: grayscale;
}
</code></pre>
        <h3 id="-">第三步：挑选相应图标并获取字体编码，应用于页面</h3>
        <pre><code class="lang-js hljs javascript">&lt;i <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"ZM-Main-icon-font"</span>&gt;&amp;#x33;<span class="xml"><span class="hljs-tag">&lt;/<span class="hljs-name">i</span>&gt;</span></span></code></pre>

        <blockquote>
        <p>"ZM-Main-icon-font"是你项目下的font-family。可以通过编辑项目查看，默认是"iconfont"。</p>
        </blockquote>
    </div>


</body>
</html>
